package com.itheima.web.controller;

import com.itheima.web.manager.AnalysisManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zsk
 * @create 2022-03-26-19:41
 */
@RestController
public class AnalysisController {

    @Autowired
    private AnalysisManager analysisManager;


    //概要统计信息
    @GetMapping("/dashboard/summary")
    public ResponseEntity summary(){
        //调用manager
        return analysisManager.summary();
    }


}
